function convertToBinary(dto){
  var arr = [];
 for(var i=0; i<dto.UseDPInfos.length; i++){ 
     var dpInfo = dto.UseDPInfos[i];  
    const code= dpInfo.DPValue;    
      const newCode = parseInt(code); 
      newCode.toString(2).length 
   for(var j= 0; j<newCode.toString(2).length; j++){
    const refVal = 1<<j;
    if((newCode&refVal)==refVal){
     arr.push({"DatapointComponent":dpInfo.DatapointComponent, "Code": refVal, IsSub: false});
    }
    }   
  }
  
 return arr; 
}